<h3>Directive can have multiple meanings. Each variant is separated with horizontal line</h3><hr>
<p><b>syntax:</b> <i>log_not_found [on|off]</i>
</p><p><b>default:</b> <i>log_not_found on</i>
</p><p><b>context:</b> <i>http, server, location</i>
</p><p>The directive enables or disables messages in error_log about files not found on disk.
</p>
<br><i>Module: NginxHttpCoreModule</i><hr>
<p><b>Syntax:</b> <i>log_not_found on | off</i>
</p><p><b>Default:</b> <i>on</i>
</p><p><b>Context:</b> <i>location</i>
</p><p>Enables or disables logging of requests that resolve into 404 status code. Can be used to prevent nginx from logging requests for the missing <i>robots.txt</i> and <i>favicon.ico</i> files.
Example:
</p><p></p>
<pre class="code"><span class="kw3">location</span> = /robots.txt <span class="br0">&#123;</span>
  <span class="kw1">log_not_found</span>  off;
<span class="br0">&#125;</span></pre>
<br><i>Module: NginxHttpMainModule</i>